//
//  OrderBaseModel.h
//  customer
//
//  Created by Holothurian on 2018/11/8.
//  Copyright © 2018年 yinlong. All rights reserved.
//

#import <Foundation/Foundation.h>
@class MaintailOrderAddressModel;
@class MaintailOrderMaterialBean;
@class WorkerBean;
@class MemberWorderBean;
NS_ASSUME_NONNULL_BEGIN

@interface OrderBaseModel : NSObject

/**
 订单id
 */
@property (nonatomic,copy)NSString *order_id;//

/**
 下单人id
 */
@property (nonatomic,copy)NSString *member_id;//

/**
 师傅id
 */
@property (nonatomic,copy)NSString *worker_id;//

/**
 订单号
 */
@property (nonatomic,copy)NSString *order_no;//

/**
 0:已取消 1:待指派  2:待上门  3:等待确认服务  4:待付款  5:已付款
 */
@property (nonatomic,copy)NSString *order_state;//

@property (nonatomic,copy)NSString *order_state_show;

/**
 后台指派出去 师傅接受状态  默认是接受  师傅可以拒绝  1:接受 2:拒绝
 */
@property (nonatomic,copy)NSString *accept_state;//

@property (nonatomic,copy)NSString *accept_state_show;

/**
 评价状态 1:未评价 2:已评价
 */
@property (nonatomic,copy)NSString *assessment_state;

/**
 评价状态 1:未评价 2:已评价
 */
@property (nonatomic,copy)NSString *assessment_state_show;

/**
 订单价格  师傅添加完材料计算得到
 */
@property (nonatomic,copy)NSString *order_price;//

/**
 优惠券
 */
@property (nonatomic,copy)NSDictionary *coupon;//


/**
 维修问题描述
 */
@property (nonatomic,copy)NSString *maintail_remark;//

/**
 维修图片路径 多张用逗号隔开
 */
@property (nonatomic,copy)NSString *maintail_imgs;//

/**
 维修部位id 多个逗号隔开
 */
@property (nonatomic,copy)NSString *parts_ids;//

/**
 维修部位名称 多个逗号隔开
 */
@property (nonatomic,copy)NSString *parts_names;//

/**
 服务开始时间
 */
@property (nonatomic,copy)NSString *service_start_time;

/**
 服务结束时间
 */
@property (nonatomic,copy)NSString *service_end_time;

/**
 //是否报修 0:不保 1:保修
 */
@property (nonatomic,copy)NSString *is_guarantee;

@property (nonatomic,copy)NSString *is_guarantee_show;

/**
 是否删除
 */
@property (nonatomic,copy)NSString *is_delete;//

/**
 创建时间
 */
@property (nonatomic,copy)NSString *create_time;

/**
 更新时间
 */
@property (nonatomic,copy)NSString *update_time;

//取消订单时间
@property (nonatomic,copy)NSString *cancel_time;

/**
 //维修地址
 */
@property (nonatomic,strong)MaintailOrderAddressModel *maintailOrderAddressBean;



@end


@interface OrderDetailModel : OrderBaseModel


/**
 发票索取状态
 */
@property (nonatomic,copy)NSString *invoice_state;

/**
 材料列表
 */
@property (nonatomic,strong)NSArray < MaintailOrderMaterialBean *> *maintailOrderMaterialBeans;
/**
 师傅详情
 */
@property (nonatomic,strong)WorkerBean *workerBean;
/**
 维修师傅
 */
@property (nonatomic,strong)MemberWorderBean *memberWorderBean;


@end

/*
 {
 "member_id": 35,
 "assessment_star": "5",
 "member_img": "21",
 "member_account": "15026592837",
 "member_real_name": "沈佳波"
 }
 */
//师傅详情
@interface WorkerBean : NSObject

@property (nonatomic,copy)NSString *member_id;

/**
 评价 🌟
 */
@property (nonatomic,copy)NSString *assessment_star;

@property (nonatomic,copy)NSString *member_img;

@property (nonatomic,copy)NSString *member_account;

@property (nonatomic,copy)NSString *member_real_name;

@end

//维修师傅
@interface MemberWorderBean : NSObject



@end

@interface MaintailOrderAddressModel : NSObject
/*
"address_latitude": "",
"address_mobile": "13656171520",
"create_time": "2018-08-16 18:35:14.0",
"address_country": "梁溪区",
"order_address_id": 101,
"address_zip_code": "122131",
"address_id": "1538",
"address_detailed": "123456",
"address_name": "hkupdate",
"address_city": "无锡",
"is_delete": "0",
"update_time": "2018-08-16 18:35:14.0",
"address_province": "江苏",
"address_road": "214000",
"address_longitude": "",
"order_id": "10"
*/

@property (nonatomic,copy)NSString *address_latitude;
//收货人手机号
@property (nonatomic,copy)NSString *address_mobile;

@property (nonatomic,copy)NSString *create_time;

@property (nonatomic,copy)NSString *address_country;

@property (nonatomic,copy)NSString *order_address_id;
//收货邮编
@property (nonatomic,copy)NSString *address_zip_code;
//地址id
@property (nonatomic,copy)NSString *address_id;
//收货详情地址
@property (nonatomic,copy)NSString *address_detailed;
//收货人姓名
@property (nonatomic,copy)NSString *address_name;

@property (nonatomic,copy)NSString *address_city;

@property (nonatomic,copy)NSString *is_delete;

@property (nonatomic,copy)NSString *update_time;

@property (nonatomic,copy)NSString *address_province;
//收货路
@property (nonatomic,copy)NSString *address_road;

@property (nonatomic,copy)NSString *address_longitude;

@property (nonatomic,copy)NSString *order_id;



@end

//材料列表
@interface MaintailOrderMaterialBean : NSObject

@property (nonatomic,copy)NSString *order_material_id;//

@property (nonatomic,copy)NSString *order_id;//订单id

@property (nonatomic,copy)NSString *material_name;//材料名称

@property (nonatomic,copy)NSString *material_price;//材料价格 0代表保修

@property (nonatomic,copy)NSString *is_delete;//

@property (nonatomic,copy)NSString *create_time;//

@property (nonatomic,copy)NSString *update_time;//

@property (nonatomic,copy)NSString *material_count;//

@end



NS_ASSUME_NONNULL_END
